package A013executor;

import java.util.concurrent.*;


public class C001_Executors例子_NoFuture {
    public static class Tasker implements Runnable {
        @Override
        public void run() {
            System.out.println("ha...");
        }
    }

    public static void main(String[] args) {
        ExecutorService service = Executors.newFixedThreadPool(3);
        for (int i = 0; i < 5; i++) {
            service.submit(new Tasker());
        }
        service.shutdown();
    }
}